package day8;

import java.util.Scanner;

public class zhouchangmianji {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入长");
		int chang = scanner.nextInt();
		System.out.println("请输入高");
		int gao  = scanner.nextInt();
		Changfangxing changfangxing = new Changfangxing(chang, gao);
		System.out.println("输入1计算周长 输入2计算面积");
		int count = scanner.nextInt();
		switch (count) {
		case 1:
			changfangxing.zhouchang();
			
			break;
		case 2 :
			changfangxing.mianji();
		default:
			break;
		}

	}

}
